#ifndef CONFREADER_H
#define CONFREADER_H

#include <fstream>

#define MAXBUFFER 500

using namespace std;

class ConfReader{
	public:
		ConfReader(const char * filename);
		~ConfReader();
		
		/** Returns a particular value
		 * read from a configuration file.
		 *
		 * @param valueName The value-name to
		 *                  search for.
		 * @return the value associated with
		 *         this value-name
		 */
		char * getValue(const char * valueName);

		/* Is the file OK to grab
		 * information from?
		 */
		int isReady();

	private:
		ifstream file;
		char buffer[MAXBUFFER], 
		     buffer2[MAXBUFFER],
		     FileName[MAXBUFFER];
		int startMatch(const char *, const char *);
		void jumpChars(char **);
};

#endif
